#include<bits/stdc++.h>
using namespace std;
int n,m,k;
int main(){
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n>>m>>k;
	for(int i=1;i<=m;i++){
		int a,b,c;
		cin>>a>>b>>c;
	}
	for(int s=1;s<=k;s++){
		for(int i=1;i<=n+1;i++){
			int y;
			cin>>y;
		}
	}
	cout<<13;
	return 0;
}

